package com.qixiucoding.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author longhj
 * @Description TODO
 * @Date 2021/08/22 星期日 22:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private String name;
    private Integer age;
    private Stu stu;

    public User copy() {
        User user = new User();
        user.setName(this.name);
        user.setAge(this.age);
        user.setStu(this.stu);
        return user;
    }

}
